﻿using System;
using eCommerce.core;
using eCommerce.db.BORespository;

namespace eCommerce.web.Controls.Common
{
    public partial class Slider : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                ListSlider();
        }

        private void ListSlider()
        {
            rptSlider.DataSource = AdvBo.GetListByTypeId((int) AdvType.Slider);
            rptSlider.DataBind();
        }
    }
}